package com.example.chapter0602;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        FragmentManager manager = getSupportFragmentManager();
        BlankFragment fragment = new BlankFragment();
        manager.beginTransaction()
                .add(R.id.fragmentContainerView,fragment)
                .commit();
    }
}